set visible of background button "Forward But" to true
set visible of background button "Backward But" to false
end openCard
-- part 1 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=22 top=157 right=171 bottom=178
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Button
----- HyperTalk script -----
on mouseUp
push card
visual effect zoom out
go to card "FCB"
end mouseUp
-- part 2 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=277 top=157 right=170 bottom=369
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Button
----- HyperTalk script -----
on mouseUp
push card
visual effect zoom out
go to card "Detail Window"
end mouseUp
-- part contents for background part 1
----- text -----
The Mac -- and Open Files
-- part contents for background part 2
----- text -----
A file system is a very complex thing -- Inside Mac, vol IV devotes 120 pages to its use. One of the things the files system does is keep track of which files are currently open.
For each file, the Mac OS keeps a File Control Block (FCB) in memory. This beast contains lots of useful stuff (all displayed in a "detail window" by OpenFileSpy). This block is kept around until the file is closed.
When the Mac boots, memory for only a certian number of these FCBs is set aside --thus a limit on the number of open files at any one time. As a file is opened a block is filled. When closed, the block is freed up for later use.